<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <title><?php echo $title_for_layout ?></title>
        <?php
        echo $html->css(array(
            'admin_css/reset',
            'admin_css/text',
            'admin_css/fonts/ptsans/stylesheet',
            'admin_css/fluid',
            'admin_css/mws.style',
            'admin_css/icons/icons',
            'admin_css/demo',
            'admin_css/jui/jquery.ui',
            'admin_css/mws.theme',
            'plugins/colorpicker/colorpicker',
            'plugins/jimgareaselect/css/imgareaselect-default',
            'plugins/fullcalendar/fullcalendar',
            'plugins/fullcalendar/fullcalendar.print',
            'plugins/tipsy/tipsy',
            'plugins/sourcerer/Sourcerer-1.2',
            'plugins/jgrowl/jquery.jgrowl',
            'plugins/spinner/spinner')
        );
        ?>
<?php echo $html->script("ckeditor/ckeditor.js"); ?><?php echo $html->script("ckfinder/ckfinder.js"); ?>
        <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.0/jquery.js"></script>

        <script type="text/javascript">
            jQuery(document).ready(function() {
                jQuery("div#mws-login .mws-login-back").mouseover(function(event) {
                    jQuery(this).find("a").animate({'left':0})
                }).mouseout(function(event) {
                    jQuery(this).find("a").animate({'left':70})
                });
			
                jQuery('#mws-navigation li').click(function(){
                    var itsclass = $(this).attr('class');
                    jQuery('#mws-navigation li ul#'+itsclass).slideToggle();
                });
            });
        </script>
        <?php
        echo $html->script(array(
            "admin_js/vtip-min.js",
            "admin_js/vtip.js",
            "admin_js/demo.js",
            "admin_js/demo.charts.js",
            "admin_js/demo.dashboard.js",
            "admin_js/demo.files.js",
            "admin_js/demo.formelements.js",
            "admin_js/jquery-ui.js",
            "admin_js/mws.js",
            "admin_js/themer.js",
            'admin_js/plugins/jimgareaselect/jquery.imgareaselect.min.js',
            'admin_js/plugins/jquery.dualListBox-1.3.min.js',
            'admin_js/plugins/jgrowl/jquery.jgrowl.js',
            'admin_js/plugins/jquery.filestyle.js',
            'admin_js/plugins/fullcalendar/fullcalendar.min.js',
            'admin_js/plugins/jquery.dataTables.js',
            'admin_js/plugins/flot/jquery.flot.min.js',
            'admin_js/plugins/flot/jquery.flot.pie.min.js',
            'admin_js/plugins/flot/jquery.flot.stack.min.js',
            'admin_js/plugins/flot/jquery.flot.resize.min.js',
            'admin_js/plugins/colorpicker/colorpicker.js',
            'admin_js/plugins/tipsy/jquery.tipsy.js',
            'admin_js/plugins/sourcerer/Sourcerer-1.2.js',
            'admin_js/plugins/jquery.placeholder.js',
            'admin_js/plugins/jquery.validate.js',
            'admin_js/plugins/jquery.mousewheel.js',
            'admin_js/plugins/spinner/ui.spinner.js'
        ));
        ?>

            <?php echo $scripts_for_layout; ?>
    </head>
    <body>
            <?php echo $this->element('adminElementHeader'); ?>
        <div class="flashing">
                <?php
                if ($session->check('Message.flash')) {
                    ?>
                <div class="mws-form-message error" style="margin-top:70px; margin-bottom:15px; width:1084px; float:right;">
                <?php
                echo $this->Session->flash();
                ?>
                </div>
            <?php
        }
        ?>
        </div>
<?php echo $this->element('adminElementMenu'); ?> <?php echo $content_for_layout ?>
        <div id="mws-footer"> Copyright Your Website 2012. All Rights Reserved. </div>
    </body>
</html>
